/**
 * Copyright (C) 2012 The SkyTvOS Project
 * <p/>
 * Version     Date           Author
 * ─────────────────────────────────────
 * 2014-8-20         luwei
 */

package com.tianci.appstore;

import android.os.Bundle;
import android.widget.ImageView;

import com.tianci.appstore.audio.IAudio;
import com.tianci.appstore.ui.SkinManager;
import com.tianci.appstore.ui.list.manage.more.MoreManagePage;
import com.tianci.appstore.ui.widget.SkyAppPager.Direction;

public class MoreManageActivity extends SkyBaseActivity {
    private MoreManagePage contentView = null;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        ImageView imageView = new ImageView(this);
        SkinManager.setBackground(imageView, R.drawable.ui_sdk_app_bg);
        super.onCreate(savedInstanceState);
        setContentView(imageView);
    }

    @Override
    public void onWindowFocusChanged(boolean hasFocus) {
        if (hasFocus && contentView == null) {
            contentView = new MoreManagePage(this, Direction.HORIZONTAL);
            setContentView(contentView);
            initAudio();
        }
        super.onWindowFocusChanged(hasFocus);
    }

    @Override
    public String getName() {
        // TODO Auto-generated method stub
        return "应用圈更多管理";
    }

    @Override
    public IAudio getAudioInterface() {
        return contentView.getAudioInterface();
    }
}
